
cmake_minimum_required(VERSION ${SE_CMAKE_VERSION})

project(SERuntime)

include_directories(
    ${SE_ENGINE_SOURCE_DIR}

    # Include vendors.
    ${SE_ENGINE_VENDOR_DIR}
    ${SE_ENGINE_VENDOR_DIR}/stb
    ${SE_ENGINE_VENDOR_DIR}/glm
    ${SE_ENGINE_VENDOR_DIR}/entt
    ${SE_ENGINE_VENDOR_DIR}/imgui
    ${SE_ENGINE_VENDOR_DIR}/glad/include
    ${SE_ENGINE_VENDOR_DIR}/glfw/include
    ${SE_ENGINE_VENDOR_DIR}/spdlog/include
    ${SE_ENGINE_VENDOR_DIR}/ImGuiFileDialog
)

add_subdirectory(${SE_ENGINE_VENDOR_DIR})

file(GLOB_RECURSE SRC_LIST
    ${SE_ENGINE_SOURCE_DIR}/*.h
    ${SE_ENGINE_SOURCE_DIR}/*.hpp
    ${SE_ENGINE_SOURCE_DIR}/*.cpp
)

add_library(${PROJECT_NAME} STATIC ${SRC_LIST})

target_link_libraries(${PROJECT_NAME} PUBLIC
    opengl32
    glad
    glfw
    imgui
    ImGuiFileDialog
)